package edu.spec.lyq.week03;

public class Student {
    String xm;
    String xh;
    String sfzh;
    private int nn;
    private double tz;
    static String bj = "2017级软件1班";
    static String zy = "软件与信息服务";
    public Student(String xm, String xh, String sfzh){
        this.xm = xm;
        this.xh  = xh;
        this.sfzh =sfzh;
    }
    public Student(String xm, String xh, String sfzh, int nn, double tz){
        this.xm = xm;
        this.xh  = xh;
        this.sfzh =sfzh;
        this.nn = nn;
        this.tz = tz;
    }
    public static void main(String args[]){

        Student s1 = new Student("小明","1","1");
        Student s2 = new Student("毛台","2","2");
        Student s3 = new Student("蘑菇","3","3");
        Student s4 = new Student("自己","4","4");

        Student[] students = new Student[4];

        students[0] = s1;
        students[1] = s2;
        students[2] = s3;
        students[3] = s4;

        for(Student stuitem: students){
            System.out.println(stuitem.xm);
        }

    }


}
